<?php
/**
 * Created by PhpStorm.
 * User: 17208
 * Date: 2019/6/13
 * Time: 14:08
 */

namespace app\common\facade;
use think\Facade;
/**
 * @see \app\common\lib\WebSocketToken
 * @mixin \app\common\lib\WebSocketToken
 * @method int get_fd(int $user_id) static 通过 user_id 获取 fd
 * @method int get_user_id(int $fd) static 通过 fd 获取 user_id
 * @method int bind_fd(int $user_id,int $fd)  static 绑定fd
 * @method int set(int $user_id,int $fd=0) static 保存token
 * @method int exist(int $fd)  static 检验fd是否存在
 */
class WebSocketToken extends Facade
{
    /**
     * 获取当前Facade对应类名（或者已经绑定的容器对象标识）
     * @access protected
     * @return string
     */
    protected static function getFacadeClass()
    {
        return 'app\common\lib\WebSocketToken';
    }
}